 import delimited "/Users/monika/Dropbox/TJ_Clientelism copy/DatasetPaper_TJPersonnel/Datasets_Accountability_by_numbers/Disag_RegressionData_Perspectives_csv.csv"

rename vdemindicatorv2pepwrses v2pep


xtmixed v2pep  || country:  , variance cov(un) reml
estimates store m1, title(Model 1)

xtmixed v2pep yaftr|| country:  , variance cov(un) reml
estimates store m2, title(Model 2)

xtmixed v2pep yaftr || country:  yaftr, variance cov(un) reml
estimates store m3, title(Model 3)

xtmixed v2pep tp_sev yaftr  || country:  yaftr, variance cov(un) reml
estimates store m5, title(Model 5)

xtmixed v2pep tp_sev yaftr  || country:  yaftr, variance cov(un) reml
estimates store m5, title(Model 5)


xtmixed v2pep tccom_sev yaftr  || country:  yaftr, variance cov(un) reml
estimates store m7, title(Model 7)

esttab, se wide nostar transform(ln*: exp(2*@) 2*exp(2*@))   ///
eqlabels("" "var(d_party_1)" "var(_cons)" "cov d_party_1, cons" "var(Residual)") ///
varlabels(,elist(cosal_3:_cons "{break}{hline @width}")) ///
varwidth(13)

*disaggregate

xtmixed v2pep lp_sev yaftr  || country:  yaftr, variance cov(un) reml
estimates store m6, title(Model 6)

xtmixed v2pep lus_severity yaftr  || country:  yaftr, variance cov(un) reml
estimates store m4, title(Model 4)

import delimited "/Users/monika/Dropbox/TJ_Clientelism copy/DatasetPaper_TJPersonnel/Datasets_Accountability_by_numbers/RegressionData_Perspectives_csv.csv"
